
/* eslint-disable react/react-in-jsx-scope */
import { Icon, Form } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale';
import styles from "./index.less";

const FormItem = Form.Item;
const MyIcon = Icon.createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_1131883_m18hmgbwet.js', // 在 iconfont.cn 上生成
});

// eslint-disable-next-line import/prefer-default-export
export const columnsTable = [
  {
    title: <FormattedMessage id="app.wordTroughManage.word-name" />,
    dataIndex: 'key',
    width: 'calc(18vw)',
  },
  {
    title: <FormattedMessage id="app.wordTroughManage.word-alias" />,
    dataIndex: 'name',
    width: 'calc(18vw)',
  },
  {
    title: <FormattedMessage id="app.wordTroughManage.dictionary" />,
    dataIndex: 'dictName',
    width: 'calc(18vw)',
  },
  {
    title: <FormattedMessage id="app.wordTroughManage.collect" />,
    dataIndex: 'isRequired',
    width: 'calc(18vw)',
    render(sex) {
      return sex === true ? 'true' : 'false'
    }
  },
]
